package com.ctshk.rpc.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * <p>
 * 机场快线api初始化渠道表
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-02-18
 */
@Data
@ApiModel(value = "AirportExpressInitializationSettingsChannelReq对象", description = "机场快线api初始化渠道表")
public class AirportExpressInitializationSettingsChannelReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "初始化设置id")
    private Long settingId;

    @Max(value = 2,message = "渠道类型不正确(1-线下渠道，2-线上渠道)")
    @Min(value = 1,message = "渠道类型不正确(1-线下渠道，2-线上渠道)")
    @ApiModelProperty(value = "渠道类型，1-线下渠道，2-线上渠道")
    private Integer channelType;

    @Max(value = 4,message = "渠道ID不正确(1-自营门市，2-代理商，3-第三方平台，4-官方平台)")
    @Min(value = 1,message = "渠道ID不正确(1-自营门市，2-代理商，3-第三方平台，4-官方平台)")
    @ApiModelProperty(value = "渠道id，1-自营门市，2-代理商，3-第三方平台，4-官方平台")
    private Long channelId;

    @ApiModelProperty(value = "渠道名称")
    private String channelName;


}
